package com.qqpz.sign_project.entity;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Courses {

  private String id;
  private String teacherUsername;
  private String name;
  private String describe;
  private String courseTime;
  private long state;
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date endTime;
  private long signType;
  private String homework;
  private String locationId;

  public Courses() {
  }

  @Override
  public String toString() {
    return "Courses{" +
            "id='" + id + '\'' +
            ", teacherUsername='" + teacherUsername + '\'' +
            ", name='" + name + '\'' +
            ", describe='" + describe + '\'' +
            ", courseTime='" + courseTime + '\'' +
            ", state=" + state +
            ", endTime=" + endTime +
            ", signType=" + signType +
            ", homework='" + homework + '\'' +
            ", locationId='" + locationId + '\'' +
            '}';
  }

  public Courses(String id, String teacherUsername, String name, String describe, String courseTime, long state, Date endTime, long signType, String homework, String locationId) {
    this.id = id;
    this.teacherUsername = teacherUsername;
    this.name = name;
    this.describe = describe;
    this.courseTime = courseTime;
    this.state = state;
    this.endTime = endTime;
    this.signType = signType;
    this.homework = homework;
    this.locationId = locationId;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }


  public String getTeacherUsername() {
    return teacherUsername;
  }

  public void setTeacherUsername(String teacherUsername) {
    this.teacherUsername = teacherUsername;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getDescribe() {
    return describe;
  }

  public void setDescribe(String describe) {
    this.describe = describe;
  }


  public String getCourseTime() {
    return courseTime;
  }

  public void setCourseTime(String courseTime) {
    this.courseTime = courseTime;
  }


  public long getState() {
    return state;
  }

  public void setState(long state) {
    this.state = state;
  }


  public Date getEndTime() {
    return endTime;
  }

  public void setEndTime(Date endTime) {
    this.endTime = endTime;
  }


  public long getSignType() {
    return signType;
  }

  public void setSignType(long signType) {
    this.signType = signType;
  }


  public String getHomework() {
    return homework;
  }

  public void setHomework(String homework) {
    this.homework = homework;
  }


  public String getLocationId() {
    return locationId;
  }

  public void setLocationId(String locationId) {
    this.locationId = locationId;
  }

  public void updateCourses(Courses courses) {
  }
}
